/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.suspend.b.e;

import android.annotation.SuppressLint;
import android.content.ContentResolver;
import android.content.Context;
import android.os.Build;
import android.os.Build.VERSION;
import android.provider.Settings.System;
import android.telephony.TelephonyManager;
import java.lang.reflect.Method;

@SuppressLint({ "DefaultLocale" })
public class a {
    public static final int a = Build.VERSION.SDK_INT;
    private static final String c = Build.PRODUCT.toLowerCase();
    public static final String b = Build.MODEL.toLowerCase();
    private static final String d = Build.MANUFACTURER.toLowerCase();
    private static final String e = Build.DISPLAY.toLowerCase();
    private static String f;
    private static String g;
    private static String h;
    private static String i;
    private static String j;

    public static String a(ContentResolver paramContentResolver) {
        if (f == null)
            f = Settings.System.getString(paramContentResolver, "android_id");
        return f;
    }

    public static String a(Context paramContext) {
        if (g == null)
            try {
                TelephonyManager localTelephonyManager = (TelephonyManager) paramContext.getSystemService("phone");
                g = localTelephonyManager.getDeviceId();
            } catch (Exception localException) {
                g = "";
            }
        return g;
    }

    public static String b(Context paramContext) {
        if ((h == null) && (paramContext != null))
            h = f.a(a(paramContext));
        return h;
    }

    public static String c(Context paramContext) {
        if (i == null)
            i = f.a(a(paramContext) + a() + a(paramContext.getContentResolver()));
        return i;
    }

    public static String a() {
        if (j == null)
            try {
                Class localClass = Class.forName("android.os.SystemProperties");
                Method localMethod = localClass.getMethod("get", new Class[] { String.class });
                j = (String) localMethod.invoke(localClass, new Object[] { "ro.serialno" });
            } catch (Exception localException) {
                j = "";
            }
        return j;
    }
}